package com.xmhmyh.generalframework.common.print;

import freemarker.cache.URLTemplateLoader;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * @Author: 于丁
 * @DateTime: 2020/9/24 1:50 下午
 */
public class MyTemlateLoad extends URLTemplateLoader {
    @Override
    public URL getURL(String s) {
        URL url = null;
        try {
            url = new URL("https://scyq.oss-cn-shenzhen.aliyuncs.com/print/" + s);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        return url;
    }
}
